package top.suven.base.core.redis;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;

/**
 * @ClassName:
 * @Description:
 * @Author lixiangling
 * @Date 2018/3/27 17:58
 */
@Configuration
public class RedisClusterConfiguration {
    private final static Logger logger = LoggerFactory.getLogger(RedisClusterConfiguration.class);

    @Value("${gc.sys.redis.cluster.server.write:true}")
    private boolean write;

    @Value("${gc.sys.redis.cluster.server.read:true}")
    private boolean read;

    @Value("${dao.cache.isOpen:true}")
    private boolean daoCache;

    public boolean isWrite() {
        return write;
    }

    public boolean isRead() {
        return read;
    }

    public boolean isDaoCache() {
        return daoCache;
    }
}
